import { createRouter, createWebHashHistory } from 'vue-router';
import { modeRoutes } from './modeRoutes';

export const router = createRouter({
	history: createWebHashHistory(),
	routes: [
		{
			path: '/',
			component: () => import('@v/views/main.vue'),
			redirect: '/home',
			children: [
				{
					path: 'home',
					component: () => import('@v/views/home.vue'),
				},
				{
					path: 'work',
					component: () => import('@v/views/work/index.vue'),
					children: modeRoutes,
				},
			],
		},
	],
});
